import request from "../utils/request";

//条件分页查询
export const queryWarehouseAreaLocal = (page,pageSize,warehouseName,warehouseAreaName) => {return request.get(`/warehousearealocal?page=${page}&pageSize=${pageSize}&warehouseName=${warehouseName}&warehouseAreaName=${warehouseAreaName}`)};

//添加库位
export const addWarehouseAreaLocal = (data) => {return request.post(`/warehousearealocal`,data)};

//回显库位
export const queryWarehouseAreaLocalById = (id) => {return request.get(`/warehousearealocal/${id}`)};

//修改库位
export const updateWarehouseAreaLocal = (data) => {return request.put(`/warehousearealocal`,data)};

//删除库位
export const deleteWarehouseAreaLocal = (id) => {return request.delete(`/warehousearealocal/${id}`)};

//查询所有库位
export const queryAllWarehouseAreaLocal = () => {return request.get(`/warehousearealocal/all`)};

export const queryWarehouseAreaLocalByPageApi=(warehouseName,warehouseAreaName,localCode,pageNum,pageSize,status)=>request.get(`/warehousearealocal/page?warehouseName=${warehouseName}&warehouseAreaName=${warehouseAreaName}&localCode=${localCode}&pageNum=${pageNum}&pageSize=${pageSize}&status=${status}`)